ReactiveView.ToProperty(Action>) method¶
Defined in
Type: ReactiveViewReactiveList.Reactive.Views Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public ReactiveView<T> ToProperty(Action<ReadOnlyObservableCollection<T>> propertySetter)public ReactiveView<T> ToProperty(out ReadOnlyObservableCollection<T> collection)
1. Overload¶
public ReactiveView<T> ToProperty(Action<ReadOnlyObservableCollection<T>> propertySetter)
View source (opens in a new tab)
Summary: Assigns the current collection of items to a property using the specified setter action.
Parameters
| Name | Type | Description |
|---|---|---|
propertySetter | Action | An action that sets a property to the current read-only observable collection of items. Cannot be null. |
Returns: ReactiveView
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if propertySetter is null. |
2. Overload¶
public ReactiveView<T> ToProperty(out ReadOnlyObservableCollection<T> collection)
View source (opens in a new tab)
Summary: Returns the current instance and assigns the underlying items collection to the specified output parameter.
Parameters
| Name | Type | Description |
|---|---|---|
out collection | ReadOnlyObservableCollection | When the method returns, contains a read-only observable collection of items managed by this view. |
Returns: ReactiveView